<?php
global $do, $FullUrl, $FullUrls;

// Define Url

define('MDL_DIR', 'templates/modules/'.$FullUrls['value_en'].'/');
define('TPL_DIR', 'templates/themes/'.$FullUrls['value_en'].'/');
define('CST_CSS', TPL_DIR.'css/');
define('CST_IMG', TPL_DIR.'images/');
define('TPL_DIR_VSP', $FullUrl.TPL_DIR);

$filename = MDL_DIR.$do.'/'.$do.'.php';
//echo realpath($filename);
//echo $filename."<br/>";
//echo TPL_DIR;
//echo $act;
if(file_exists($filename)) 
{		
	include($filename); 	
}
else
{
	$filename = MDL_DIR.'404'.'/'.'404'.'.php';
	//echo $filename;
	include($filename); 
}
	
include(TPL_DIR.'index.php');
?>